function fastcall msxsnsmat(treg as ubyte) as ubyte:
  asm
    call $0141
    end asm
  end function

